/*
 * Created by JFormDesigner on Mon Nov 11 15:45:59 CST 2024
 */

package com.ch14;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * @author jjchen
 */
public class regirter extends JFrame {
    public regirter() {
        initComponents();
    }

    private void button1MouseClicked(MouseEvent e) {

        mylogin login = new mylogin();
        login.setVisible(true);
        this.setVisible(false);
    }



    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        label1 = new JLabel();
        label2 = new JLabel();
        label3 = new JLabel();
        button1 = new JButton();
        label4 = new JLabel();
        textField1 = new JTextField();
        passwordField1 = new JPasswordField();
        passwordField2 = new JPasswordField();

        //======== this ========
        var contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- label1 ----
        label1.setText("\u7528\u6237\u540d");
        contentPane.add(label1);
        label1.setBounds(75, 75, 65, 45);

        //---- label2 ----
        label2.setText("\u5bc6\u7801");
        contentPane.add(label2);
        label2.setBounds(75, 125, 65, 45);

        //---- label3 ----
        label3.setText("\u786e\u8ba4\u5bc6\u7801");
        contentPane.add(label3);
        label3.setBounds(75, 175, 65, 45);

        //---- button1 ----
        button1.setText("\u6ce8\u518c");
        button1.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button1MouseClicked(e);
                button1MouseClicked(e);
            }
        });
        contentPane.add(button1);
        button1.setBounds(190, 240, 100, 45);

        //---- label4 ----
        label4.setText("\u6ce8\u518c");
        label4.setFont(label4.getFont().deriveFont(label4.getFont().getStyle() | Font.BOLD, label4.getFont().getSize() + 7f));
        contentPane.add(label4);
        label4.setBounds(200, 10, 90, 55);
        contentPane.add(textField1);
        textField1.setBounds(175, 85, 160, 35);
        contentPane.add(passwordField1);
        passwordField1.setBounds(175, 135, 160, 35);
        contentPane.add(passwordField2);
        passwordField2.setBounds(175, 185, 160, 35);

        contentPane.setPreferredSize(new Dimension(485, 335));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JLabel label1;
    private JLabel label2;
    private JLabel label3;
    private JButton button1;
    private JLabel label4;
    private JTextField textField1;
    private JPasswordField passwordField1;
    private JPasswordField passwordField2;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
